package com.navi.loaddata.core.gpEntity.array;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

public class WppAdefectOpeSumPK implements Serializable {
    private String panelId;
    private String opeId;
    private String defectSize;

    @Column(name = "panel_id")
    @Id
    public String getPanelId() {
        return panelId;
    }

    public void setPanelId(String panelId) {
        this.panelId = panelId;
    }

    @Column(name = "ope_id")
    @Id
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Column(name = "defect_size")
    @Id
    public String getDefectSize() {
        return defectSize;
    }

    public void setDefectSize(String defectSize) {
        this.defectSize = defectSize;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WppAdefectOpeSumPK that = (WppAdefectOpeSumPK) o;

        if (panelId != null ? !panelId.equals(that.panelId) : that.panelId != null) return false;
        if (opeId != null ? !opeId.equals(that.opeId) : that.opeId != null) return false;
        if (defectSize != null ? !defectSize.equals(that.defectSize) : that.defectSize != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = panelId != null ? panelId.hashCode() : 0;
        result = 31 * result + (opeId != null ? opeId.hashCode() : 0);
        result = 31 * result + (defectSize != null ? defectSize.hashCode() : 0);
        return result;
    }
}
